#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QPainter>
#include <QDesktopWidget>
#include <logindialog.h>
#include "ui_main_home.h"


namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget {
    Q_OBJECT
public:
    explicit MainWidget(QWidget *parent = nullptr);

protected:
    void paintEvent(QPaintEvent *event) override;  // 重写 paintEvent 绘制背景

signals:
    void openMap();  // 信号：打开地图界面
    void showLogin();
    void openResult();

private:
    Ui::MainWidget *ui;

};

#endif // MAINWIDGET_H
